package de.uni.webprog.client;

import java.io.Serializable;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class LoginManager implements EntryPoint, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3359554675611599095L;

	public void onModuleLoad() {
		RootPanel rootPanel = RootPanel.get();
		
		HorizontalPanel horizontalPanel = new HorizontalPanel();
		rootPanel.add(horizontalPanel, 10, 10);
		horizontalPanel.setSize("524px", "280px");
		
		VerticalPanel verticalPanel = new VerticalPanel();
		horizontalPanel.add(verticalPanel);
		
		Label lblWilkommenAufDer = new Label("Wilkommen auf der Testseite");
		lblWilkommenAufDer.setStyleName("gwt-Label-Login");
		verticalPanel.add(lblWilkommenAufDer);
		
		Login login = new Login();
		horizontalPanel.add(login);
		login.setWidth("258px");
	}
}
